package com.example.alphabetindexer.demo;

import com.example.alphabetindexer.widget.AlphabetIndexerBean;

public class Contact implements AlphabetIndexerBean {
	private String name;
	private String phonenum;
	private boolean firstPhone;
	private int id;
	private boolean check;
	private String recentmessage;
	private String imgFlag;
	private String sortKey; // atearsan/2013-07-26 contact中的sort_key, 用于排序

	public Contact(String name, String phonenum) {
		super();
		this.name = name;
		this.phonenum = phonenum;
	}

	public Contact(String name, String phonenum, String sortKey) {
		super();
		this.name = name;
		this.phonenum = phonenum;
		this.sortKey = sortKey;
	}

	public Contact(int id) {
		super();
		this.id = id;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String getPhonenum() {
		return phonenum;
	}

	public void setPhonenum(String phonenum) {
		this.phonenum = phonenum;
	}

	public boolean isCheck() {
		return check;
	}

	public void setCheck(boolean check) {
		this.check = check;
	}

	public String getRecentmessage() {
		return recentmessage;
	}

	public void setRecentmessage(String recentmessage) {
		this.recentmessage = recentmessage;
	}

	public String getImgFlag() {
		return imgFlag;
	}

	public void setImgFlag(String imgFlag) {
		this.imgFlag = imgFlag;
	}

	public boolean isFirstPhone() {
		return firstPhone;
	}

	public void setFirstPhone(boolean firstPhone) {
		this.firstPhone = firstPhone;
	}

	public String getSortKey() {
		return sortKey;
	}

	public void setSortKey(String sortKey) {
		this.sortKey = sortKey;
	}

	@Override
	public String toString() {
		return "Contact [name=" + name + ", phonenum=" + phonenum
				+ ", firstPhone=" + firstPhone + ", id=" + id + ", check="
				+ check + ", recentmessage=" + recentmessage + ", imgFlag="
				+ imgFlag + ", sortKey=" + sortKey + "]";
	}

}
